package com.wenjie.original.entity;

import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import com.mybatisflex.core.keygen.KeyGenerators;
import com.wenjie.original.entity.common.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 角色和菜单关联 sys_role_menu
 *
 * @author wenjie
 */
@Data
@Table("sys_role_menu")
@ApiModel("角色和菜单关联 ")
public class SysRoleMenu extends BaseEntity {

    @Id(keyType = KeyType.Generator, value = KeyGenerators.snowFlakeId)
    private Long sysRoleMenuId;

    @ApiModelProperty("角色ID")
    private Long sysRoleId;

    @ApiModelProperty("菜单ID")
    private Long sysMenuId;
}
